<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>SPArtistBrowse Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<meta name="viewport" content="width=550" />
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.1 (build 840)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">CocoaLibSpotify </a></h1>
				<a id="developerHome" href="../index.html">Spotify AB</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">SPArtistBrowse Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/albums">&nbsp;&nbsp;&nbsp;&nbsp;albums</option>
	
	<option value="//api/name/artist">&nbsp;&nbsp;&nbsp;&nbsp;artist</option>
	
	<option value="//api/name/biography">&nbsp;&nbsp;&nbsp;&nbsp;biography</option>
	
	<option value="//api/name/firstPortrait">&nbsp;&nbsp;&nbsp;&nbsp;firstPortrait</option>
	
	<option value="//api/name/loadError">&nbsp;&nbsp;&nbsp;&nbsp;loadError</option>
	
	<option value="//api/name/loaded">&nbsp;&nbsp;&nbsp;&nbsp;loaded</option>
	
	<option value="//api/name/portraits">&nbsp;&nbsp;&nbsp;&nbsp;portraits</option>
	
	<option value="//api/name/relatedArtists">&nbsp;&nbsp;&nbsp;&nbsp;relatedArtists</option>
	
	<option value="//api/name/session">&nbsp;&nbsp;&nbsp;&nbsp;session</option>
	
	<option value="//api/name/topTracks">&nbsp;&nbsp;&nbsp;&nbsp;topTracks</option>
	
	<option value="//api/name/tracks">&nbsp;&nbsp;&nbsp;&nbsp;tracks</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/browseArtist:inSession:type:">&nbsp;&nbsp;&nbsp;&nbsp;+ browseArtist:inSession:type:</option>
	
	<option value="//api/name/browseArtistAtURL:inSession:type:callback:">&nbsp;&nbsp;&nbsp;&nbsp;+ browseArtistAtURL:inSession:type:callback:</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/initWithArtist:inSession:type:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithArtist:inSession:type:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>




<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and Initializing Artist Browses">Creating and Initializing Artist Browses</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Properties">Properties</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Metadata">Metadata</a></span></li>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/albums">albums</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/artist">artist</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/biography">biography</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/firstPortrait">firstPortrait</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/loadError">loadError</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/loaded">loaded</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/portraits">portraits</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/relatedArtists">relatedArtists</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/session">session</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/topTracks">topTracks</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tracks">tracks</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/browseArtist:inSession:type:">browseArtist:inSession:type:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/browseArtistAtURL:inSession:type:callback:">browseArtistAtURL:inSession:type:callback:</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithArtist:inSession:type:">initWithArtist:inSession:type:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="SPArtistBrowse Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">SPArtistBrowse Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value">NSObject</td>
</tr><tr>
	<td class="specification-title">Conforms to</td>
	<td class="specification-value"><a href="../Protocols/SPAsyncLoading.html">SPAsyncLoading</a></td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">SPArtistBrowse.h<br />SPArtistBrowse.m</td>
</tr>
						</tbody></table></div>
					
					
					
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>Represents an &ldquo;<a href="#//api/name/artist">artist</a> browse&rdquo; of an <a href="#//api/name/artist">artist</a> on the Spotify service.</p>

<p>An &ldquo;<a href="#//api/name/artist">artist</a> browse&rdquo; fetches detailed information about an <a href="#//api/name/artist">artist</a> from the Spotify
service, including a <a href="#//api/name/biography">biography</a>, portrait images, related artists and a list of
their <a href="#//api/name/tracks">tracks</a> and <a href="#//api/name/albums">albums</a>.</p>

<p>Artist or album browses are required for certain <a href="../Classes/SPTrack.html">SPTrack</a> metadata to be available &ndash;
see the <a href="../Classes/SPTrack.html">SPTrack</a> documentation for details.</p>
					</div>
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						<a title="Creating and Initializing Artist Browses" name="task_Creating and Initializing Artist Browses"></a>
						<h3 class="subsubtitle task-title">Creating and Initializing Artist Browses</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/browseArtist:inSession:type:">+&nbsp;browseArtist:inSession:type:</a></code>
		<span class="tooltip"><p>Creates an SPArtistBrowse from the given <a href="../Classes/SPArtist.html">SPArtist</a>.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/browseArtistAtURL:inSession:type:callback:">+&nbsp;browseArtistAtURL:inSession:type:callback:</a></code>
		<span class="tooltip"><p>Creates an SPArtistBrowse from the given <a href="#//api/name/artist">artist</a> URL.</p></span>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithArtist:inSession:type:">&ndash;&nbsp;initWithArtist:inSession:type:</a></code>
		<span class="tooltip"><p>Initializes a new SPArtistBrowse from the given <a href="../Classes/SPArtist.html">SPArtist</a>.</p></span>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Properties" name="task_Properties"></a>
						<h3 class="subsubtitle task-title">Properties</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/loaded">&nbsp;&nbsp;loaded</a></code>
		<span class="tooltip"><p>Returns <code>YES</code> if the <a href="#//api/name/artist">artist</a> metadata has finished loading.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/loadError">&nbsp;&nbsp;loadError</a></code>
		<span class="tooltip"><p>Returns the error that occurred during loading, or <code>nil</code> if no error occurred.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/session">&nbsp;&nbsp;session</a></code>
		<span class="tooltip"><p>Returns the session the artist&rsquo;s metadata is <a href="#//api/name/loaded">loaded</a> in.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li>
						</ul>
						
						
						<a title="Metadata" name="task_Metadata"></a>
						<h3 class="subsubtitle task-title">Metadata</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/albums">&nbsp;&nbsp;albums</a></code>
		<span class="tooltip"><p>Returns a list of albums by this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/artist">&nbsp;&nbsp;artist</a></code>
		<span class="tooltip"><p>Returns the browse operation&rsquo;s artist.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/biography">&nbsp;&nbsp;biography</a></code>
		<span class="tooltip"><p>Returns the artist&rsquo;s biography, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/firstPortrait">&nbsp;&nbsp;firstPortrait</a></code>
		<span class="tooltip"><p>Returns the first <a href="#//api/name/artist">artist</a> portrait image, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet or there are no images.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/portraits">&nbsp;&nbsp;portraits</a></code>
		<span class="tooltip"><p>Returns the artist&rsquo;s portrait images, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/relatedArtists">&nbsp;&nbsp;relatedArtists</a></code>
		<span class="tooltip"><p>Returns a list of related artists for this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/tracks">&nbsp;&nbsp;tracks</a></code>
		<span class="tooltip"><p>Returns a list of tracks by this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.
@deprecated</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/topTracks">&nbsp;&nbsp;topTracks</a></code>
		<span class="tooltip"><p>Returns a list of &ldquo;top hit&rdquo; <a href="#//api/name/tracks">tracks</a> by this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p></span>
	</span>
	<span class="task-item-suffix">property</span>
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/albums" title="albums"></a>
	<h3 class="subsubtitle method-title">albums</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a list of albums by this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *albums</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/artist" title="artist"></a>
	<h3 class="subsubtitle method-title">artist</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the browse operation&rsquo;s artist.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) SPArtist *artist</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/biography" title="biography"></a>
	<h3 class="subsubtitle method-title">biography</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the artist&rsquo;s biography, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, copy) NSString *biography</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/firstPortrait" title="firstPortrait"></a>
	<h3 class="subsubtitle method-title">firstPortrait</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the first <a href="#//api/name/artist">artist</a> portrait image, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet or there are no images.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) SPImage *firstPortrait</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/loadError" title="loadError"></a>
	<h3 class="subsubtitle method-title">loadError</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the error that occurred during loading, or <code>nil</code> if no error occurred.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, copy) NSError *loadError</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/loaded" title="loaded"></a>
	<h3 class="subsubtitle method-title">loaded</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns <code>YES</code> if the <a href="#//api/name/artist">artist</a> metadata has finished loading.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, getter=isLoaded) BOOL loaded</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/portraits" title="portraits"></a>
	<h3 class="subsubtitle method-title">portraits</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the artist&rsquo;s portrait images, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *portraits</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/relatedArtists" title="relatedArtists"></a>
	<h3 class="subsubtitle method-title">relatedArtists</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a list of related artists for this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *relatedArtists</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/session" title="session"></a>
	<h3 class="subsubtitle method-title">session</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns the session the artist&rsquo;s metadata is <a href="#//api/name/loaded">loaded</a> in.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) SPSession *session</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/topTracks" title="topTracks"></a>
	<h3 class="subsubtitle method-title">topTracks</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a list of &ldquo;top hit&rdquo; <a href="#//api/name/tracks">tracks</a> by this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *topTracks</code></div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/tracks" title="tracks"></a>
	<h3 class="subsubtitle method-title">tracks</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a list of tracks by this <a href="#//api/name/artist">artist</a>, or <code>nil</code> if the metadata isn&rsquo;t <a href="#//api/name/loaded">loaded</a> yet.
@deprecated</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) NSArray *tracks</code></div>
	
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<div class="warning"><p><strong>Warning:</strong> This property is deprecated.</p></div>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/browseArtist:inSession:type:" title="browseArtist:inSession:type:"></a>
	<h3 class="subsubtitle method-title">browseArtist:inSession:type:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates an SPArtistBrowse from the given <a href="../Classes/SPArtist.html">SPArtist</a>.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (SPArtistBrowse *)browseArtist:(SPArtist *)<em>anArtist</em> inSession:(SPSession *)<em>aSession</em> type:(sp_artistbrowse_type)<em>browseMode</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>anArtist</em></dt>
			<dd><p>The <a href="../Classes/SPArtist.html">SPArtist</a> to make an SPArtistBrowse for.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="../Classes/SPSession.html">SPSession</a> the browse should exist in.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>browseMode</em></dt>
			<dd><p>The type of <a href="#//api/name/artist">artist</a> browse to perform.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created SPArtistBrowse object.</p>
	</div>
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This convenience method is simply returns a new, autoreleased SPArtistBrowse
object. No caching is performed.</p><div class="warning"><p><strong>Warning:</strong> It is strongly recommended that you don&rsquo;t use <code>SP_ARTISTBROWSE_FULL</code>
as the browse type, as this will download metadata for every single album and track from the given
<a href="#//api/name/artist">artist</a>, which is both a lengthy and memory-intensive operation. Please use
<code>SP_ARTISTBROWSE_NO_TRACKS</code> (which downloads <a href="#//api/name/artist">artist</a> information, their <a href="#//api/name/albums">albums</a> and top <a href="#//api/name/tracks">tracks</a>) or
<code>SP_ARTISTBROWSE_NO_ALBUMS</code> (which only downloads <a href="#//api/name/artist">artist</a> information and top <a href="#//api/name/tracks">tracks</a>) instead.</p></div><div class="warning"><p><strong>Warning:</strong> If you pass in an invalid <a href="#//api/name/artist">artist</a> URL (i.e., any URL not
starting <code>spotify:artist:</code>, this method will return <code>nil</code>.</p></div>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/browseArtistAtURL:inSession:type:callback:" title="browseArtistAtURL:inSession:type:callback:"></a>
	<h3 class="subsubtitle method-title">browseArtistAtURL:inSession:type:callback:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates an SPArtistBrowse from the given <a href="#//api/name/artist">artist</a> URL.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>+ (void)browseArtistAtURL:(NSURL *)<em>artistURL</em> inSession:(SPSession *)<em>aSession</em> type:(sp_artistbrowse_type)<em>browseMode</em> callback:(void ( ^ ) ( SPArtistBrowse *artistBrowse ))<em>block</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>artistURL</em></dt>
			<dd><p>The <a href="#//api/name/artist">artist</a> URL to make an SPArtistBrowse for.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="../Classes/SPSession.html">SPSession</a> the browse should exist in.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>browseMode</em></dt>
			<dd><p>The type of <a href="#//api/name/artist">artist</a> browse to perform.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>block</em></dt>
			<dd><p>The block to be called with the created SPArtistBrowse object.</p></dd>
		</dl>
		
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<p>This convenience method is simply returns a new, autoreleased SPArtistBrowse
object. No caching is performed.</p><div class="warning"><p><strong>Warning:</strong> It is strongly recommended that you don&rsquo;t use <code>SP_ARTISTBROWSE_FULL</code>
as the browse type, as this will download metadata for every single album and track from the given
<a href="#//api/name/artist">artist</a>, which is both a lengthy and memory-intensive operation. Please use
<code>SP_ARTISTBROWSE_NO_TRACKS</code> (which downloads <a href="#//api/name/artist">artist</a> information, their <a href="#//api/name/albums">albums</a> and top <a href="#//api/name/tracks">tracks</a>) or
<code>SP_ARTISTBROWSE_NO_ALBUMS</code> (which only downloads <a href="#//api/name/artist">artist</a> information and top <a href="#//api/name/tracks">tracks</a>) instead.</p></div><div class="warning"><p><strong>Warning:</strong> If you pass in an invalid <a href="#//api/name/artist">artist</a> URL (i.e., any URL not
starting <code>spotify:artist:</code>, this method will return <code>nil</code>.</p></div>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/initWithArtist:inSession:type:" title="initWithArtist:inSession:type:"></a>
	<h3 class="subsubtitle method-title">initWithArtist:inSession:type:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes a new SPArtistBrowse from the given <a href="../Classes/SPArtist.html">SPArtist</a>.</p>
	</div>		
	
	
	<div class="method-subsection method-declaration"><code>- (id)initWithArtist:(SPArtist *)<em>anArtist</em> inSession:(SPSession *)<em>aSession</em> type:(sp_artistbrowse_type)<em>browseMode</em></code></div>
	
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>anArtist</em></dt>
			<dd><p>The <a href="../Classes/SPArtist.html">SPArtist</a> to make an SPArtistBrowse for.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>aSession</em></dt>
			<dd><p>The <a href="../Classes/SPSession.html">SPSession</a> the browse should exist in.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>browseMode</em></dt>
			<dd><p>The type of <a href="#//api/name/artist">artist</a> browse to perform.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>Returns the created SPArtistBrowse object.</p>
	</div>
	
	
	
	
	
	<div class="method-subsection discussion-section">
		<h4 class="method-subtitle">Discussion</h4>
		<div class="warning"><p><strong>Warning:</strong> It is strongly recommended that you don&rsquo;t use <code>SP_ARTISTBROWSE_FULL</code>
as the browse type, as this will download metadata for every single album and track from the given
<a href="#//api/name/artist">artist</a>, which is both a lengthy and memory-intensive operation. Please use
<code>SP_ARTISTBROWSE_NO_TRACKS</code> (which downloads <a href="#//api/name/artist">artist</a> information, their <a href="#//api/name/albums">albums</a> and top <a href="#//api/name/tracks">tracks</a>) or
<code>SP_ARTISTBROWSE_NO_ALBUMS</code> (which only downloads <a href="#//api/name/artist">artist</a> information and top <a href="#//api/name/tracks">tracks</a>) instead.</p></div><div class="warning"><p><strong>Warning:</strong> If you pass in an invalid <a href="#//api/name/artist">artist</a> URL (i.e., any URL not
starting <code>spotify:artist:</code>, this method will return <code>nil</code>.</p></div>
	</div>
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">SPArtistBrowse.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2012 Spotify AB. All rights reserved. (Last updated: 2012-11-14)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 840)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
			
			// If showing in Xcode, hide the TOC and Header
			if (navigator.userAgent.match(/xcode/i)) {
				document.getElementById("contents").className = "hideInXcode"
				document.getElementById("tocContainer").className = "hideInXcode"
				document.getElementById("top_header").className = "hideInXcode"
			}
			
		</script>
	</body>
</html>